#pragma once
#include <map>
#include "..\InterfaceCar.h"
#include "InterfaceCarCreate.h"

class FactorySimpleM
{
public:
    FactorySimpleM();

    //创建车;
    InterfaceCar* CreateCar(EnumCar emType);

    //注册车类创建函数指针;
    static void RegisterCarCreate(EnumCar emType, OnCreate create);
public:

    static std::map<EnumCar, OnCreate> m_mapCar;
};

